package io.kiki.task.server.common.convert;

import io.kiki.task.server.common.vo.JobRequestVO;
import io.kiki.task.template.datasource.persistence.po.Job;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface JobConverter {

    JobConverter INSTANCE = Mappers.getMapper(JobConverter.class);

    Job convert(JobRequestVO jobRequestVO);

    List<JobRequestVO> convertList(List<Job> jobs);

}
